package com.jk.dto;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

/**
 * @author yzf
 * @version 1.0
 * @description: TODO
 * @date 2024/12/9 19:20
 */
@Data
@ToString
@TableName(value = "tb_student")
public class TbStudent implements Serializable {

    private static final long serialVersionUID = 3246168072970464230L;
    @TableId(value = "id",type = IdType.AUTO)
    @Excel(name = "编号")
    private Integer id;
    @Excel(name = "用户名")
    private String userName;
    @Excel(name = "密码")
    private String password;
    @Excel(name = "真实姓名")
    private String realName;
    @Excel(name = "年龄")
    private Integer age;
    @Excel(name = "性别",replace = {"男_0","女_1"})
    private String sex;
    @Excel(name = "手机号")
    private String phone;
    @Excel(name = "状态",replace = {"启用_0","禁用_1"})
    private String status;
    @Excel(name = "创建时间",exportFormat = "yyyy-MM-dd HH-mm-ss",importFormat = "yyyy-MM-dd HH-mm-ss")
    private Date createTime;
    @Excel(name = "修改时间",exportFormat = "yyyy-MM-dd HH-mm-ss",importFormat = "yyyy-MM-dd HH-mm-ss")
    private Date modifyTime;
    @Excel(name = "生日",exportFormat = "yyyy-MM-dd HH-mm-ss",importFormat = "yyyy-MM-dd HH-mm-ss")
    private Date birthday;
    @Excel(name = "年级", replace = {"一年级_0", "二年级_1","三年级_2","四年级_3","五年级_4","六年级_5","初一_6","初二_7","初三_8","高一_9","高二_10","高三_11"})
    private String grade;

    private String className;
}
